package com.dsl.dslallinone.mapper;

import com.dsl.dslallinone.dto.fact.WaterDayFact;
import com.mybatisflex.core.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 用水日事实表Mapper
 */
@Mapper
@Repository
public interface WaterDayFactMapper extends BaseMapper<WaterDayFact> {

    /**
     * 执行自定义SQL查询
     */
    @Select("${sql}")
    List<Map<String, Object>> executeCustomSql(@Param("sql") String sql);
}
